//
//  JLog.swift
//  JMicroBlog
//
//  Created by Jason on 21/5/15.
//  Copyright (c) 2015 Shepherd. All rights reserved.
//

import UIKit

class JLog: NSObject {
    
    // 打印的全局开关是否打开
    static let globalFlog = true
    
    // 强制打印 忽略开关是否开启 只是想偷懒而已
    static let forceFlag = false
    
    class func i(str:AnyObject?,_ localFlag:Bool = true) {
        // 判断全局开关是否被开启
        if globalFlog || forceFlag {
            // 判断局部开关是否被开启
            if localFlag || forceFlag {
                if str != nil {
                    println(str!)
                }
            }
        }
     }
}
